using (var connection = My.ConnectionFactory()) { connection.Open(); var invoice = connection.Get<Invoice>(1); }